package com.neusoft.controller.registration;

import com.neusoft.bean.PageBean;
import com.neusoft.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/registers")
@CrossOrigin
public class RegisterController {
    @Autowired
    private RegisterService registerService;
    @GetMapping("/searchPatientInformations")
    public PageBean searchPatientInformations(
            @RequestParam(defaultValue = "1") Integer page,
            @RequestParam(defaultValue = "5") Integer pageSize,
            String caseNumber,
            String realName){
        return registerService.searchPatientInformations(page,pageSize,caseNumber,realName);

    }
}
